package xcu.lxj.nettychat.chat.domain.vo.request;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "新建群组")
public class GroupAddReq {

    @Schema(description = "群昵称")
    private String name;


    @Schema(description = "群头像")
    private String avatar;

    @NotNull
    @Size(min = 1, max = 50)
    @Schema(description = "邀请的uid  1 <= size <= 50",requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> uidList;
}
